home *** CD-ROM | disk | FTP | other *** search
- on sortthem
- global athome, total
- set reorg to 0
- set total to 0
- set trumpy to [[445, 186], [378, 142], [513, 135], [515, 249], [377, 249], [379, 198], [513, 195], [446, 136], [446, 228], [446, 272]]
- updateStage()
- set runny to [:]
- set starty to [:]
- repeat with xxx = 11 to 20
- if sprite 3 intersects xxx then
- set total to total + 1
- put xxx
- set grandma to []
- add(grandma, the locH of sprite xxx)
- add(grandma, the locV of sprite xxx)
- addProp(starty, xxx, value(grandma))
- set reorg to reorg + 1
- set grampa to []
- add(grampa, (getAt(getAt(trumpy, reorg), 1) - the locH of sprite xxx) / 30.0)
- add(grampa, (getAt(getAt(trumpy, reorg), 2) - the locV of sprite xxx) / 30.0)
- addProp(runny, xxx, value(grampa))
- end if
- end repeat
- if count(runny) > 0 then
- moveboxedones(starty, runny)
- end if
- updateStage()
- end
-
- on moakelisterine
- set lavoris to []
- repeat with xxx = 11 to 20
- add(lavoris, [the locH of sprite xxx, the locV of sprite xxx])
- end repeat
- put lavoris
- end
-
- on moveboxedones istart, idone
- set ptime to the timer
- repeat while (the timer - ptime) < 30
- set dtime to the timer - ptime
- repeat with xxx = 1 to count(istart)
- set newx to getAt(getAt(istart, xxx), 1) + (dtime * getAt(getAt(idone, xxx), 1))
- set newy to getAt(getAt(istart, xxx), 2) + (dtime * getAt(getAt(idone, xxx), 2))
- set the locH of sprite getPropAt(istart, xxx) to newx
- set the locV of sprite getPropAt(istart, xxx) to newy
- end repeat
- updateStage()
- end repeat
- repeat with xxx = 1 to count(istart)
- set newx to getAt(getAt(istart, xxx), 1) + (30 * getAt(getAt(idone, xxx), 1))
- set newy to getAt(getAt(istart, xxx), 2) + (30 * getAt(getAt(idone, xxx), 2))
- set the locH of sprite getPropAt(istart, xxx) to newx
- set the locV of sprite getPropAt(istart, xxx) to newy
- end repeat
- updateStage()
- end
-